package com.cn.demo4.thread.getobject;

/**
 * @author Administrator
 * 执行类
 */
public class TestRunnable {
    public static void main(String[] args) {
        //创建MyRunnable对象
        MyRunnable myRunnable = new MyRunnable();
        //创建线程对象，并将MyRunnable对象传入线程的构造方法里面
        Thread thread = new Thread(myRunnable,"A");
        //开启线程（线程就绪状态）
        thread.start();

    }
}
